package com.tan.androidtest.net;

import java.io.Serializable;

/**
 * http请求基类
 */

public class HttpResponse<G> implements Serializable{

    private int error;//错误码
    private boolean success;
    private int total;
    private G data;

    public int getError() {
        return error;
    }

    public void setError(int error) {
        this.error = error;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public G getData() {
        return data;
    }

    public void setData(G data) {
        this.data = data;
    }
}
